import axios from "axios";
axios.defaults.baseURL='/api'

//1. 查询学生列表
export function findAllStudents() {
    return axios.get("/student/list")
}

//2. 条件查证带分页
export function search(page,pageSize,data) {
    return axios.post(`/student/search/${page}/${pageSize}`,data)

}

//3. 添加或修改学生
export function save(url,data) {
    return axios.post(url,data)
}

//4. 删除学生
export function delStud(sid) {
    return axios.get(`/student/delete/${sid}`)
}